var mongoose = require('../../config/mongodb/mongoose');

// 骨架模版
var Users = new mongoose.Schema({
  user: String,
  password: String,
}, {collection: "users"});
var allDatas = new mongoose.Schema({
  name: String,
  parent: String,
  isdir: Boolean,
  subdir: Array
}, {collection: "allDatas"})
module.exports = {
  allDatas: mongoose.model('allDatas', allDatas),
  Users: mongoose.model('Users', Users)
};
